# -*- mode: snippet -*-
# name: device agg_jpeg from ragg
# key: agg_jpeg@ragg
# key: device#agg_jpeg@ragg
# contributor: Shuguang Sun
# expand-env: ((yas-wrap-around-region t))
# --
ragg::agg_jpeg(file = "$1", width = 1000, height = 500, res = 144)

$0

invisible(dev.off())